]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Use a StWidget instead of a Separator
authorCarlos Soriano <csoriano@gnome.org>
Fri, 20 Feb 2015 09:35:30 +0000 (10:35 +0100)
committerCarlos Soriano <csoriano@gnome.org>
Fri, 20 Feb 2015 16:15:31 +0000 (17:15 +0100)
We don't use the gradient part of a Separator, so we can
just use a StWidget instead and shut up some warnings

js/ui/popupMenu.js

index 3baf71fc5703045d33f00da3c0c7bb309df590ce..ffa78e5ce46881950e2cdd7fda1763b95cf97ade 100644 (file)
@@ -264,8 +264,8 @@ const PopupSeparatorMenuItem = new Lang.Class({
                            Lang.bind(this, this._syncVisibility));
         this._syncVisibility();
 
-        this._separator = new Separator.HorizontalSeparator({ style_class: 'popup-separator-menu-item' });
-        this.actor.add(this._separator.actor, { expand: true });
+        this._separator = new St.Widget({ style_class: 'popup-separator-menu-item' });
+        this.actor.add(this._separator, { expand: true });
     },
 
     _syncVisibility: function() {